ihy123 [Thu, 14 Aug 2025 09:44:10 +0000 (12:44 +0300)]
ip/ffmpeg: more precise seeking
av_seek_frame() and avformat_seek_file() seek to nearest "keyframe". For
codecs like, for example, ape this means that seeking will be very off
(5 seconds or more). So what we do is:
1. seek to nearest "keyframe" before the desired time,
2. discard some frames to approach the desired time.
Gbp-Pq: Name 0003-ip-ffmpeg-more-precise-seeking.patch